<?php
/**
 *
 * User: wufeng
 * Date: 2020/03/11
 */

namespace app\parent\controller\v1;
use app\common\controller\ParentController;
use app\parent\service\ClassDayService;

class ClassDay extends ParentController
{
	/**
	 * 课节详情列表
	 * User: wufeng
	 * Date: 2020/03/11
	 *
	 */
	public function classDayDetailLists()
	{
		if ($this->request->isPost()) {
			$params = $this->request->param();
			$list = (new ClassDayService($this->type))->classDayDetailLists($params);
			if (1 !== $list['code']) {
				$this->fail($list);
			}
			$this->win($list);
		}
		$this->fail('ILLEGAL_REQUEST');
	}
}